#检查获取传⼊列表或元组的所有奇数位索引对应的元素，并将其作为新列表返回给调⽤者
def func(li, tup):
    new_tup = list(tup)
    for i in range(len(li)):
        if i % 2 == 1:
            li.append(li[i])
    print(li)

    for j in range(len(tup)):
        if j % 2 == 1:
            new_tup.append(tup[j])
    print(new_tup)

    return (li, new_tup)
res = func([1,2,3,4,5,6,7,8,9],(1,2,3,11,21,4,5,6,7))
print(res)